]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
workspacesView: Disable mouse drag to switch workspaces
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Fri, 8 Jan 2021 20:25:45 +0000 (17:25 -0300)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Thu, 18 Feb 2021 12:43:02 +0000 (09:43 -0300)
During the user research, it was found that users would instinctively
drag the workspace horizontally but would often, in the process,
accidentally drag a window.

Disable dragging workspaces using the cursor for now.

Fixes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3742
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1694>

js/ui/workspacesView.js

index 717ae0c6341bc7a87188e4f6e68302e8c2b5413f..0bc25251c1601f5147cd7c75b5ddfc1a1eebe6f4 100644 (file)
@@ -606,7 +606,9 @@ class WorkspacesDisplay extends St.Widget {
                 this._workspacesReordered.bind(this));
 
         this._swipeTracker = new SwipeTracker.SwipeTracker(
-            Main.layoutManager.overviewGroup, Shell.ActionMode.OVERVIEW);
+            Main.layoutManager.overviewGroup,
+            Shell.ActionMode.OVERVIEW,
+            { allowDrag: false });
         this._swipeTracker.allowLongSwipes = true;
         this._swipeTracker.connect('begin', this._switchWorkspaceBegin.bind(this));
         this._swipeTracker.connect('update', this._switchWorkspaceUpdate.bind(this));